
import 'dart:convert';

ClassOverviewTotalData classOverviewDataFromJson(String str) =>
    ClassOverviewTotalData.fromJson(json.decode(str));

String classOverviewDataToJson(ClassOverviewTotalData data) =>
    json.encode(data.toJson());

class ClassOverviewTotalData {
  ClassOverviewTotalData({
    this.status,
    this.message,
    this.result,
  });

  int? status;
  String? message;
  Result? result;

  factory ClassOverviewTotalData.fromJson(Map<String, dynamic> json) =>
      ClassOverviewTotalData(
        status: json["status"],
        message: json["message"],
        result: Result.fromJson(json["result"]),
      );

  Map<String, dynamic> toJson() => {
        "status": status,
        "message": message,
        "result": result != null ? result?.toJson() : null,
      };
}

class Result {
  Result({
    this.readTimes,
    this.assessments,
    this.readBooks,
    this.assignments,
    this.writings,
    this.recordings,
    this.quizTimes,
    this.studentNum,
  });

  int? readTimes;
  int? assessments;
  int? readBooks;
  int? assignments;
  int? writings;
  int? recordings;
  int? quizTimes;
  int? studentNum;

  factory Result.fromJson(Map<String, dynamic> json) => Result(
        readTimes: json["readTimes"],
        assessments: json["assessments"],
        readBooks: json["readBooks"],
        assignments: json["assignments"],
        writings: json["writings"],
        recordings: json["recordings"],
        quizTimes: json["quizTimes"],
        studentNum: json["studentNum"],
      );

  Map<String, dynamic> toJson() => {
        "readTimes": readTimes,
        "assessments": assessments,
        "readBooks": readBooks,
        "assignments": assignments,
        "writings": writings,
        "recordings": recordings,
        "quizTimes": quizTimes,
        "studentNum": studentNum,
      };
}
